package com.lefeng.cockpit.common.bean.dto.resource;

import com.didiglobal.logi.security.common.dto.PageParamDTO;
import com.lefeng.cockpit.common.bean.dto.BaseDTO;
import com.lefeng.cockpit.common.enums.resource.ResourceType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

@Data
public class ResourceDTO extends PageParamDTO {

    @ApiModelProperty(value = "自增ID")
    Integer resourceId;

    @ApiModelProperty(value = "file or udf")
    ResourceType type;

    @ApiModelProperty(value = "别名")
    String alias;

    @ApiModelProperty(value = "描述")
    String description;

    @ApiModelProperty(value = "父ID")
    Integer pid;

    @ApiModelProperty(value = "文件")
    MultipartFile file;

    @ApiModelProperty(value = "当前目录")
    String currentDir;

    @ApiModelProperty(value = "线上写入内容")
    String content;

    @ApiModelProperty(value = "文件名称")
    String fileName;

    @ApiModelProperty(value = "文件后缀")
    String fileSuffix;

    @ApiModelProperty(value = "关键字搜索")
    String searchVal;
}
